package com.July.mapper;

import com.July.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

/**
 * @author 91989
 */
//部门Mapper
@Repository
@Mapper
public interface DepartmentMapper {
/*    //模拟数据库中数据
    private static Map<Integer, Department> department=null;
    static {
        department=new HashMap<>();
        department.put(101,new Department(101,"教学部"));
        department.put(102,new Department(102,"市场部"));
        department.put(103,new Department(103,"教研部"));
        department.put(104,new Department(104,"运营部"));
        department.put(105,new Department(105,"后勤部"));
    }*/

    //获取所有部门信息
    public Collection<Department> getDepartments();

    //通过id查找部门
    public Department getDepartmentById(Integer id);
}
